powered by
Convert bn.fit objects to grain objects and vice versa.
bn.fit
grain
# S3 method for grain as.bn.fit(x, ...) # S3 method for bn.fit as.grain(x) # S3 method for grain as.bn(x, ..., check.cycles = TRUE)
an object of class grain(code) (for as.bn.fit) or bn.fit() (for as.grain).
grain(code)
as.bn.fit
bn.fit()
as.grain
extra arguments from the generic method (currently ignored).
a boolean value. If FALSE the returned network will not be checked for cycles.
FALSE
An object of class grain (for as.grain) or bn.fit (for as.bn.fit).
# NOT RUN { library(gRain) a = bn.fit(hc(learning.test), learning.test) b = as.grain(a) c = as.bn.fit(b) # }
Run the code above in your browser using DataLab